<script type="text/javascript">
	$(function() {
	    $.fn.dataGridOptions.formSubFun("#form",'/modules/additional/newActivityPlan/newActivityPlanAdd.html',"添加成功！","添加失败！");
	});
</script>
<style>
.hide{display:none;}
.sForm .ipt{margin-left:155px;}
.sForm .ipt1{margin-bottom:20px;margin-left:155px;}
.sForm .lab{width:139px;}
</style>
<div class="popForm sForm">
    <form id="form"  method="post">
    	<div class="formitm">
		     <label class="lab">活动名称：</label>
		     <div class="ipt">
		     	<input type="text" name="name" class="w200 easyui-validatebox" data-options="required: true" value="" maxlength="10"/>
		     	<b>*</b>
		     </div>
		</div>
		<div class="formitm">
			<label class="lab">活动环节名称：</label>
			<div class="ipt">
				<select name="tache" id="tache">
					<option>--请选择--</option>
                    <#if activeTeach?exists>
                        <#list activeTeach?keys as key>
                            <option value="${key}">${activeTeach.get(key)}</option>
                        </#list>
                    </#if>
                </select>
                <span class="tache_tip" style="display:none">&nbsp;&nbsp;注册成功送大礼包!</span>
                <span class="tache_tip" style="display:none">&nbsp;&nbsp;邀请好友进行注册成功,送红包或各种券!</span>
                <span class="tache_tip" style="display:none">&nbsp;&nbsp;首投环节,在还款时返现20元!</span>
                <span class="tache_tip" style="display:none">&nbsp;&nbsp;投标成功,送红包或各种券!</span>
                <span class="tache_tip" style="display:none">&nbsp;&nbsp;根据系统配置{by_month_tender_active}的月标,投标成功,送红包或各种券!</span>
                <span class="tache_tip" style="display:none">&nbsp;&nbsp;根据酒券规则适配!</span>
                <span class="tache_tip" style="display:none">&nbsp;&nbsp;根据规则适配,发放现金!</span>
                <span class="tache_tip" style="display:none">&nbsp;&nbsp;根据规则适配,发放现金!</span>
                <span class="tache_tip" style="display:none">&nbsp;&nbsp;根据规则适配,发放现金!</span>
                <script type="text/javascript">
                    $(function() {
                        $("#tache").change(function(){
                            $(".tache_tip").hide();
                            if(this.selectedIndex > 0)
                            {
                                $($(".tache_tip").get(this.selectedIndex - 1)).show();
                            }
                        });
                    });
                </script>
            </div>
        </div>

        <div class="formitm">
             <label class="lab">是否启用：</label>
             <div class="ipt">
                 <input type="radio" id="status" class="xj-hongbao" value="0" name="status" checked="checked">启用
                 <input type="radio" id="status" class="xn-hongbao" value="1" name="status">不启用
             </div>
        </div>
        <div class="formitm">
            <label class="lab">活动开始时间：</label>
            <div class="ipt">
                <input type="text" name="startTime" id="startTime" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'endTime\')}',dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" class="searchTime"/>
                <b>*</b>
            </div>
        </div>
        <div class="formitm">
            <label class="lab">活动结束时间：</label>
            <div class="ipt">
                <input type="text" name="endTime" id="endTime" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'startTime\')}',dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" class="searchTime"/>
                <b>*</b>
            </div>
        </div>
        <div class="formitm">
             <label class="lab">活动规则描述：</label>
             <div class="ipt">
                <textarea rows="3" maxlength="250" cols="50" name="description"></textarea>
             </div>
        </div>
    </form>
</div>
